Use g_strdup on the translated string instead of g_strndup() + the length
authorJohan Dahlin <jdahlin@async.com.br>
Tue, 7 Aug 2007 21:04:23 +0000 (21:04 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Tue, 7 Aug 2007 21:04:23 +0000 (21:04 +0000)
2007-08-07  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbuilderparser.c (text): Use g_strdup on the translated
    string instead of g_strndup() + the length of the untranslated
    string. (#461945, Claude Paroz)

svn path=/trunk/; revision=18588

ChangeLog
gtk/gtkbuilderparser.c

index bd7c772f6788ca7ab62f997272f2d51b66f03303..27c57a874b29a6c2292360764d2ee3a791123abc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-07  Johan Dahlin  <jdahlin@async.com.br>
+
+       * gtk/gtkbuilderparser.c (text): Use g_strdup on the translated
+       string instead of g_strndup() + the length of the untranslated
+       string. (#461945, Claude Paroz)
+
 2007-08-07  Kristian Rietveld  <kris@imendio.com>
 
        * gtk/gtktooltips.c (gtk_tooltips_init),
index 8937b7847a7d8c24d1848d9599b31b68bbc51e94..9ca1889b47b371f17ae8ad4dba482b0bef6d46e5 100644 (file)
@@ -915,7 +915,7 @@ text (GMarkupParseContext *context,
           else
             text = dgettext (data->domain, text);
         }
-      prop_info->data = g_strndup (text, text_len);
+      prop_info->data = g_strdup (text);
     }
 }